package org.frog.sgs.card.basic;

import org.frog.sgs.card.AbstractCard;
import org.frog.sgs.card.basic.type.Suit;

/**
 * 基本牌默认实现
 * 
 * @author duanxiangqi
 * @date 2012-10-15
 */
public abstract class AbstractBasic extends AbstractCard implements Basic {

	private static final long serialVersionUID = 8620436667547005182L;

	private Suit suit;

	private int points;

	public Suit getSuit() {
		return suit;
	}

	public void setSuit(Suit suit) {
		this.suit = suit;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public boolean isSpades() {
		return suit == Suit.spades;
	}

	public boolean isHearts() {
		return suit == Suit.hearts;
	}

	public boolean isClub() {
		return suit == Suit.club;
	}

	public boolean isDiamond() {
		return suit == Suit.diamond;
	}
}
